package cn.sixthquestion;

public class Teacher {

    private int id;
    private double salary;
    private String duty;
    private String department;

    public Teacher(){

    }

    public Teacher(int id, double salary, String duty, String department) {
        this.id = id;
        this.salary = salary;
        this.duty = duty;
        this.department = department;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", salary=" + salary +
                ", duty='" + duty + '\'' +
                ", department='" + department + '\'' +
                '}';
    }
}
